package com.foreveross.dao.imp;

import org.springframework.stereotype.Component;

import com.foreveross.common.SQLUtil;
import com.foreveross.dao.BaseDAO;

@Component("baseDAO")
public class BaseDAOImp extends SQLUtil implements BaseDAO {

	@Override
	public void deleteObjec(String tableObj, String id) throws Exception {
		String sql = "delete from " + tableObj + " t where t.id='" + id + "'";
		updateObejctByHql(sql);
	}

	@Override
	public Object findObject(Class clazz, String id) throws Exception {
		return this.findById(clazz, id);
	}

}
